a = []

for i in range(2,101):
    for j in range(2,i):
        if i%j==0:
            break
    else:
        a.append(i)

print(a)

b = []
for i in range(len(a)-1):
    if a[i+1]-a[i] == 2:
        b.append((a[i], a[i+1]))

print(b)
